package com.ss.bilibili_online.service;

import com.ss.bilibili_online.dao.DataDao;
import com.ss.bilibili_online.repository.DataRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
@Service
public class DataServiceImpl implements DataService {
    @Autowired
    private DataDao dataDao;
    @Autowired
    private DataRepository dataRepository;
    @Override
    public List getDateE(String type,String counts) {

       List dataMap =  dataDao.getDataE(Integer.parseInt(counts));
      // HashMap queryResultMap = new HashMap();
       /* if("1".equals(type)){

        }else{

        }*/

        return dataMap;
    }
}
